/*
 * File Name: Spinner.java
 *------------------------------------------------------------------------------
 * Copyright 2012 NCR Corporation
 *------------------------------------------------------------------------------
 * All revision information is updated automatically from source code control
 * change records - please do not manually edit.
 *------------------------------------------------------------------------------
 *
 * $LastChangedRevision:: 1601                                     $
 * $LastChangedBy:: rb250096                                       $
 * $LastChangedDate:: 2012-02-22 17:11:39 -0500 (Wed, 22 Feb 2012) $
 *
 */
package com.ncr.nep.dashboardcore.ui.client;

import com.google.gwt.user.client.ui.Widget;

/**
 * Widget that animates a sprite.  For modern browsers, this class will do
 * nothing more than show an element with the animation being handled in CSS.
 * For older browsers, like IE, this class will use JavaScript to animate the
 * sprite.
 * <p>
 *     NOTE: For browsers that require the JavaScript-based animation, the
 *     number of key frames in the sprite will need to be specified in order to
 *     control.  For cases of different types of controls that have different
 *     numbers of frames, it would be wise to extend this class and encapsulate
 *     that information so that it does not need to be specified in code in
 *     multiple places.
 * </p>
 */
public class AnimatedSprite extends Widget {
    
    //--------------------------------------------------------------------------
    //
    //  Fields
    //
    //--------------------------------------------------------------------------

    /**
     * The number of frames in the sprite.
     */
    protected int numberOfKeyFrames = 12;

    /**
     * Indicates that the sprite is aligned vertically.
     */
    protected boolean vertical = true;
}
